const fs = require('fs')
const ws = fs.createWriteStream('./2.txt', 'utf-8')

ws.write('123456\n')
ws.write('654321')
ws.end()